package projet.bd;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.widget.Toast;

public class AlarmeAlerte extends Activity {
	   public void onCreate(Bundle savedInstanceState) {
	      super.onCreate(savedInstanceState);
	 
	      setContentView(R.layout.alarmalert);
	 
	      Bundle extras = getIntent().getExtras();
	      String data = extras.getString("nel.example.alarme");       
	 
	      // Create a dialog that the user must dismiss
	      AlertDialog alertDialog = new AlertDialog.Builder(this).create();
	      alertDialog.setMessage("Alerte !");  
	 
	      alertDialog.setButton("OK", new DialogInterface.OnClickListener() {
	 
	      public void onClick(DialogInterface dialog, int which) {
	         finish();
	      } });
	 
	      //alertDialog.setIcon(R.drawable.icon);
	      alertDialog.show();
	   }
	}